module.exports = (sequelize, DataTypes) => {
    return sequelize.define('User', {
      username: {
        type: DataTypes.STRING,
        unique: true
      },
      password: DataTypes.STRING,
      role: {
        type: DataTypes.ENUM('admin', 'user'),
        defaultValue: 'user'
      },
      theme: {
        type: DataTypes.STRING,
        defaultValue: 'light'
      }
    });
  };